﻿#include "DllUser.h"
#include <iostream>

CDllUser::CDllUser()
	:m_nCount(0)
{
	std::cout << "create dlluser. " << std::endl;
}

CDllUser::~CDllUser()
{
	std::cout << "delete dlluser. " << std::endl;
}

void CDllUser::PrintUser()
{
	m_nCount++;
	std::cout << "PrintdllUser:  "<< m_nCount << "." << std::endl;
}

bool CDllUser::Execute(ParamSetRef pParamSet)
{
	IUserRef pGetUser = pParamSet->Get<1, IUserRef>();
    if (pGetUser == nullptr)
    {
        return false;
    }

    pGetUser->PrintUser();

	return true;
}
